package com.toutoushidao.ssm.entity;


import java.util.Date;

/**
 * 消息接收者
 * @author laodun
 *
 */
public class Receiver {
    private Long id;
    private Long messageId;
    private Long receiverId;
    private boolean isRead;
    private Date dateCreated;
    private boolean isDeleted;

    public boolean isRead() {
        return isRead;
    }

    public void setRead(boolean read) {
        isRead = read;
    }

    public Date getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(Date dateCreated) {
        this.dateCreated = dateCreated;
    }

    public boolean isDeleted() {
        return isDeleted;
    }

    public void setDeleted(boolean deleted) {
        isDeleted = deleted;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMessageId() {
        return messageId;
    }

    public void setMessageId(Long messageId) {
        this.messageId = messageId;
    }

    public Long getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(Long receiverId) {
        this.receiverId = receiverId;
    }

    @Override
    public String toString() {
        return "Receiver{" +
                "id=" + id +
                ", messageId=" + messageId +
                ", receiverId=" + receiverId +
                ", isRead=" + isRead +
                ", dateCreated=" + dateCreated +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
